@extends('layouts.app')

@section('title','帖子列表页')


@section('content')
    <div class="row">

        <div class="col-md-9">
            <div class="card">

                <ul class="card-header nav nav-pills bg-transparent">
                    <li class="nav-item">
                        <a class="nav-link {{active_class(!if_query('order','recent'))}}" href="{{Request::url()}}?order=default">最后评论</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link {{active_class(if_query('order','recent'))}}" href="{{Request::url()}}?order=recent">最新帖子</a>
                    </li>
                </ul>



                <div class="card-body">

                    @if(count($topics))
                        @include('topics._topic_list',['topics'=>$topics])
                    @else
                        @include('Shared._no_data',['info'=>'无数据'])
                    @endif

                </div>



            </div>
        </div>

        <div class="col-md-3">
            @include('topics._siderbar')
        </div>
    </div>
@stop
